package com.platform.service;

import com.platform.dao.ApiMacroMapper;
import com.platform.dao.ApiWithdrawMapper;
import com.platform.entity.MacroVo;
import com.platform.entity.UserVo;
import com.platform.entity.WithdrawVo;
import com.platform.util.CommonUtil;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;


@Service
public class ApiMacroService {
    @Autowired
    private ApiMacroMapper apiMacroMapper;

    public MacroVo getNameByKeyAndValue(String key, String value){
        return apiMacroMapper.getNameByKeyAndValue(key, value);
    }


    public List<MacroVo> getByKey(String key){
        return apiMacroMapper.getByKey(key);
    }
}
